﻿@model Abhimanu.Mobile.Models.OnlineTestModel
@{
    ViewBag.Title = "Generate Test";
    Layout = "~/Views/Shared/M/_StudentLayout.cshtml";
    List<SelectListItem> sections = new List<SelectListItem>();
    sections.Add(new SelectListItem() { Text = "Complete Test", Value = "" });
    sections.Add(new SelectListItem() { Text = "Economy", Value = "1" });
    sections.Add(new SelectListItem() { Text = "Geography", Value = "2" });
    sections.Add(new SelectListItem() { Text = "History", Value = "3" });
    sections.Add(new SelectListItem() { Text = "Politics", Value = "4" });
    sections.Add(new SelectListItem() { Text = "Science", Value = "5" });
    sections.Add(new SelectListItem() { Text = "Current Affairs", Value = "6" });
    sections.Add(new SelectListItem() { Text = "Misc G.K", Value = "7" });
    sections.Add(new SelectListItem() { Text = "AV Edge", Value = "8" });

    List<SelectListItem> numbers = new List<SelectListItem>();
    numbers.Add(new SelectListItem() { Text = "10", Value = "10" });
    numbers.Add(new SelectListItem() { Text = "20", Value = "20" });
    numbers.Add(new SelectListItem() { Text = "30", Value = "30" });
    numbers.Add(new SelectListItem() { Text = "40", Value = "40" });
    numbers.Add(new SelectListItem() { Text = "50", Value = "50" });
}

<a data-role="button" class="no-Ajax"   style="float:left" href="@Url.Action("SelectTest", "Student")">
    Back</a>
<br />
<br />
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <ul data-role="listview" data-inset="true" data-theme="d" data-divider-theme="a">
        <li data-role="list-divider">Generate Test</li>

        <li>
            @Html.LabelFor(model => model.Section)
            @Html.DropDownListFor(m => m.Section, sections, new { required = "required" })
            @Html.ValidationMessageFor(model => model.Section)
        </li>

        <li>
            @Html.LabelFor(model => model.NoOfQuest)
            @Html.DropDownListFor(m => m.NoOfQuest, numbers, new { required = "required" })
            @Html.ValidationMessageFor(model => model.NoOfQuest)
        </li>
        
       
    </ul>
    <input type="submit" value="Start" data-theme="a" data-form="ui-btn-up-a" />
}

@section scripts
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
